Optimal. Leaf size=82 \[ -\frac {A b-a B}{b (a+b x) (b d-a e)}+\frac {\log (a+b x) (B d-A e)}{(b d-a e)^2}-\frac {(B d-A e) \log (d+e x)}{(b d-a e)^2} \]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 82, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.065, Rules used = {27, 77} \begin {gather*} -\frac {A b-a B}{b (a+b x) (b d-a e)}+\frac {\log (a+b x) (B d-A e)}{(b d-a e)^2}-\frac {(B d-A e) \log (d+e x)}{(b d-a e)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 77
Rubi steps
\begin {align*} \int \frac {A+B x}{(d+e x) \left (a^2+2 a b x+b^2 x^2\right )} \, dx &=\int \frac {A+B x}{(a+b x)^2 (d+e x)} \, dx\\ &=\int \left (\frac {A b-a B}{(b d-a e) (a+b x)^2}+\frac {b (B d-A e)}{(b d-a e)^2 (a+b x)}+\frac {e (-B d+A e)}{(b d-a e)^2 (d+e x)}\right ) \, dx\\ &=-\frac {A b-a B}{b (b d-a e) (a+b x)}+\frac {(B d-A e) \log (a+b x)}{(b d-a e)^2}-\frac {(B d-A e) \log (d+e x)}{(b d-a e)^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 69, normalized size = 0.84 \begin {gather*} \frac {\frac {(a B-A b) (b d-a e)}{b (a+b x)}+\log (a+b x) (B d-A e)+(A e-B d) \log (d+e x)}{(b d-a e)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {A+B x}{(d+e x) \left (a^2+2 a b x+b^2 x^2\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.42, size = 157, normalized size = 1.91 \begin {gather*} \frac {{\left (B a b - A b^{2}\right )} d - {\left (B a^{2} - A a b\right )} e + {\left (B a b d - A a b e + {\left (B b^{2} d - A b^{2} e\right )} x\right )} \log \left (b x + a\right ) - {\left (B a b d - A a b e + {\left (B b^{2} d - A b^{2} e\right )} x\right )} \log \left (e x + d\right )}{a b^{3} d^{2} - 2 \, a^{2} b^{2} d e + a^{3} b e^{2} + {\left (b^{4} d^{2} - 2 \, a b^{3} d e + a^{2} b^{2} e^{2}\right )} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.16, size = 141, normalized size = 1.72 \begin {gather*} \frac {{\left (B b d - A b e\right )} \log \left ({\left | b x + a \right |}\right )}{b^{3} d^{2} - 2 \, a b^{2} d e + a^{2} b e^{2}} - \frac {{\left (B d e - A e^{2}\right )} \log \left ({\left | x e + d \right |}\right )}{b^{2} d^{2} e - 2 \, a b d e^{2} + a^{2} e^{3}} + \frac {B a b d - A b^{2} d - B a^{2} e + A a b e}{{\left (b d - a e\right )}^{2} {\left (b x + a\right )} b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 123, normalized size = 1.50 \begin {gather*} -\frac {A e \ln \left (b x +a \right )}{\left (a e -b d \right )^{2}}+\frac {A e \ln \left (e x +d \right )}{\left (a e -b d \right )^{2}}+\frac {B d \ln \left (b x +a \right )}{\left (a e -b d \right )^{2}}-\frac {B d \ln \left (e x +d \right )}{\left (a e -b d \right )^{2}}+\frac {A}{\left (a e -b d \right ) \left (b x +a \right )}-\frac {B a}{\left (a e -b d \right ) \left (b x +a \right ) b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.49, size = 118, normalized size = 1.44 \begin {gather*} \frac {{\left (B d - A e\right )} \log \left (b x + a\right )}{b^{2} d^{2} - 2 \, a b d e + a^{2} e^{2}} - \frac {{\left (B d - A e\right )} \log \left (e x + d\right )}{b^{2} d^{2} - 2 \, a b d e + a^{2} e^{2}} + \frac {B a - A b}{a b^{2} d - a^{2} b e + {\left (b^{3} d - a b^{2} e\right )} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.14, size = 94, normalized size = 1.15 \begin {gather*} \frac {A\,b-B\,a}{b\,\left (a\,e-b\,d\right )\,\left (a+b\,x\right )}-\frac {2\,\mathrm {atanh}\left (\frac {a^2\,e^2-b^2\,d^2}{{\left (a\,e-b\,d\right )}^2}+\frac {2\,b\,e\,x}{a\,e-b\,d}\right )\,\left (A\,e-B\,d\right )}{{\left (a\,e-b\,d\right )}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 1.19, size = 355, normalized size = 4.33 \begin {gather*} \frac {A b - B a}{a^{2} b e - a b^{2} d + x \left (a b^{2} e - b^{3} d\right )} - \frac {\left (- A e + B d\right ) \log {\left (x + \frac {- A a e^{2} - A b d e + B a d e + B b d^{2} - \frac {a^{3} e^{3} \left (- A e + B d\right )}{\left (a e - b d\right )^{2}} + \frac {3 a^{2} b d e^{2} \left (- A e + B d\right )}{\left (a e - b d\right )^{2}} - \frac {3 a b^{2} d^{2} e \left (- A e + B d\right )}{\left (a e - b d\right )^{2}} + \frac {b^{3} d^{3} \left (- A e + B d\right )}{\left (a e - b d\right )^{2}}}{- 2 A b e^{2} + 2 B b d e} \right )}}{\left (a e - b d\right )^{2}} + \frac {\left (- A e + B d\right ) \log {\left (x + \frac {- A a e^{2} - A b d e + B a d e + B b d^{2} + \frac {a^{3} e^{3} \left (- A e + B d\right )}{\left (a e - b d\right )^{2}} - \frac {3 a^{2} b d e^{2} \left (- A e + B d\right )}{\left (a e - b d\right )^{2}} + \frac {3 a b^{2} d^{2} e \left (- A e + B d\right )}{\left (a e - b d\right )^{2}} - \frac {b^{3} d^{3} \left (- A e + B d\right )}{\left (a e - b d\right )^{2}}}{- 2 A b e^{2} + 2 B b d e} \right )}}{\left (a e - b d\right )^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________